module.exports = {
    devServer: {
        proxy: {
            '/api': {
                target: 'http://localhost:8080',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': '/api',
                },
            },
            '/oauth': {
                target: process.env.VUE_APP_BASE_URL,
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/oauth': '/oauth',
                },
            },
        },
    },
}
